<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>数据库文档</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <link rel="stylesheet" href="/static/component/pear/css/module/newtable.css"/>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
</head>
<style>
    .layui-card {
        padding: 15px;
        margin-bottom: 15px
    }
    .layui-card-header div {
        margin-right: 15px;
    }
</style>
<body class="pear-container">
<div class="site-content">

    <div class="layui-card">
        <div class="layui-card-header">温馨提示</div>
        <div class="layui-card-body" style="padding-top: 15px;">
            此文档是由系统自动生成，如发现错误或疑问请告知开发人员及时修改
        </div>
    </div>

    {volist name="list" id="vo"}
    <div class="layui-card" id="{$vo.name}">
        <div class="layui-card-header display_flex">
            <div>表名：{$vo.name}({$vo.comment})</div>
            <div>引擎：{$vo.engine}</div>
            <div>字符集：{$vo.collation}</div>
            <div>记录数：{$vo.rows}</div>
        </div>
        <div class="layui-card-body" style="padding-top: 15px;">

            <table class="layui-table">
                <thead>
                <tr>
                    <th>字段名称</th>
                    <th>字段编码</th>
                    <th>类型</th>
                    <th>长度</th>
                    <th>默认值</th>
                    <th>索引</th>
                </tr>
                </thead>
                <tbody>
                {volist name="vo.field" id="rs"}
                <tr>
                    <td>{if $rs.field=='id'}主键{else}{$rs.title}{/if}</td>
                    <td>{$rs.field}</td>
                    <td>{$rs.type}</td>
                    <td>{$rs.length}</td>
                    <td>{$rs.default}</td>
                    <td>{if $rs.key==2}-{else}<span class="layui-badge">是</span>{/if}</td>
                </tr>
                {/volist}
                </tbody>
            </table>


        </div>
    </div>
    {/volist}


</div>

</body>
</html>
